#include <iostream>
// 去除字符串中的标点符号
int main()
{
    std::string s1("hello,world!!!!");
    std::string s2;

    if(!s1.empty())
    {
        for(decltype(s1.size()) index = 0; index != s1.size(); ++index)
        {
            if(!ispunct(s1[index]))
            {
                s2 += s1[index];
            }
                
        }
    }
    std::cout << s2 << std::endl;
    return 0;
}